//
//  UIImageView+Fade.h
//  UIImageView+AnimationForSDWebImage
//
//  Created by 王鹏宇 on 2017/7/18.
//  Copyright © 2017年 penghe. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImageView (Fade)


/**
 设置fade动画图片

 @param url 图片网络地址
 @param placeholder 填充图
 */
- (void)setImageURL:(NSURL *)url placeholderImage:(UIImage *)placeholder;


/**
 获取缓存图片

 @param url 地址
 @return image
 */
+ (UIImage *)imageFromDiskCacheForKey:(NSString *)url;

+ (CGFloat)imageCacheSize;

+ (void)clearImageCache;

+ (void)downloadImageWithURL:(NSURL *)url progress:(YYWebImageProgressBlock)progress completion:(YYWebImageCompletionBlock)completion;

@end
